Skip to content

feat(record-page): dense field rows, one-line activity and file-row attachments - #35708

Merged
objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/issue-35602-record-dense-rows-activity-attachments
Nov 20, 2026
Merged

objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/issue-35602-record-dense-rows-activity-attachments

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
Fixes #35602
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户在记录详情页看到更紧凑的字段(标签在左、值在右、按宽度两到三列)、按天分组的一行式动态,以及一行一个文件的附件列表;评论框平时只占一行。
  • 属于记录页改版:同一屏能看到更多字段、动态和附件,少滚动。
  • 出错时最多是版面挤或时间换行,数据不受影响;改动只在界面,可直接撤回。
  • 无。

What changes

  • Fields (default record page, frameless face; drawn by DetailSection.tsx, DetailView.tsx untouched): each field is one 32px row, label left (12px, muted, 112px fixed width) and value right (13px, 24px line so badges fit). Columns are 1 / 2 / 3 by container width (@xl 2, @4xl 3) under the existing cap: 2 beside the right column, 3 in the wide tier; sections with five or fewer fields stay at 2. Groups stay collapsible; the 记录页:字段全空的分组各占一张卡,卡里只有一行「显示 N 个空字段」 #35019 empty-group line is unchanged. Authored pages that ask for bordered group cards keep them.
  • Activity (stream and authored panel): the comment box is one line (34px) until focused. Entries sit under day headings (今天 / 昨天 / date). System entries are ~30px one-line rows (icon, who, what, time on the right); comments are a header plus one body line (50px), with reactions and 「回复」 on hover or focus. Consecutive field edits by one person on one day fold into one expandable row (display only). An approval is one line with 「看审批」 when the host passes onViewApprovals. The panel's 全部 filter becomes a quiet text trigger in its header; the stream keeps its chips.
  • Behaviour change: the reply input opens behind a per-comment 「回复」 toggle instead of standing open under every comment.
  • Attachments: 33px file rows (type icon, name, size, uploader, date, ⋮ menu with Download and Delete). 「+ 上传」 at the top right; files can be dropped anywhere on the panel; the empty state is one 40px dashed line with 「选择文件」. The uploader name shows for the viewer's own files or when uploaded_by arrives expanded; otherwise the cell is blank (a server-side expand is out of scope). No Rename (no rename seam on the panel).
  • i18n: 7 new detail.* keys in all 11 locale packs.
  • Two small optional props serve the comment box and comment row: compact on RichTextCommentInput, controlsClassName on CommentBody.

Follow-ups (nested under #35602)

Only the default record page went dense; authored pages that ask for the card face keep their cards (seat ruling).

Acceptance notes (1280×800 zh-CN, real browser)

Line Before After
Field rows (default page, account) label above value, first row 52px 9 / 9 rows at 32px, 0 card faces
Comment box 129px 34px
Activity entries fully in the first screen (stream) 1 7 (a run of 7 edits folded into one row)
Authored panel (project) composer 129px, fold rows 70px composer 34px, fold 30px
Attachments, empty 131px 76px (36px header + 40px dashed line)
Attachments, 3 files 233px, rows 57 / 57 / 56 136px, rows 33 / 33 / 33
380px drawer — 1 column of label-left rows, nothing past the edge, no horizontal scroll; times on one line

Not measured: the column count in the default 720px drawer.

Tests

  • New: ui/packages/plugin-detail/src/__tests__/denseActivityRows-35602.test.tsx (fold rule, fold expand, day grouping, comment header, approval line with 看审批, collapsed composer).
  • Migrated (old layout pins moved to the new rows; none deleted, negative pins re-anchored so they stay non-vacuous):
    • plugin-detail: narrowDrawerTime-34614, recordPageV3Face-27055, recordTimelineStream-27055, RecordActivityTimeline.authorControls-12268, RecordActivityTimeline.reactionsCommentRowsOnly-11035, RecordActivityTimeline.zeroReplyInput-12144, RecordTimelinePanel.chatterInset-34676
    • app-shell attachments: RecordAttachmentsPanel.test.tsx, RecordAttachmentsPanel.affordanceGrant-12047, RecordAttachmentsPanel.deleteConfirm-12248
    • app-shell record view: RecordDetailView.authoredActivityThreading-12249, .replyCountOnRead-12144, .feedCommentEditDelete-12268, .commentWriteFailure-10899, .withheldMentions-28218, .recordPageTiers-26678
    • e2e: narrow-drawer-time-34614.spec.ts, record-flow-phone-targets.spec.ts
  • Checklist: docs/qa/platform-checklist/areas/attachments-storage.json item attachments-storage.download-authz-both-sides: step 6 now reaches Download through the row ⋮ menu; revision 11 → 12 with a history row. No clause changed.

Verification


🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me

…ments download step at the dense rows; changeset

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface and removed size/l labels Nov 20, 2026
… pins to the dense rows

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…on one-line entries; migrate the stream, reply and attachment pins

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…s in the record page pins; container breakpoints in the tier pin

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:记录详情页更紧凑:每个字段一行(标签在左、值在右);动态按天分组,每条一行,评论框平时只有一行;附件每个文件一行,操作收进「⋮」。一屏能看到 7 条动态,原来只有 1 条。
  • 为什么做:按您说的「附件和动态好丑」,记录详情页专题的一张卡。
  • 出错会怎样:只是界面排版;动态的数据来源和合并规则不变,窄抽屉的原有测试都通过。
  • 要你做什么:无。
  • 席位意见:通过;卡上要求的「上传人姓名」(别人上传的文件)和「重命名」这次没做,需要另立后续卡;另补登记两个已有的端到端测试文件,都是文字。之后由区域合并。

席位核对

L1-a: ACCEPT, two text-only items · head 894bd7758a017453537a8f71d770657cdc38bf56 · Fixes #35602 (epic #35590) · K=5 · merge-tree clean · not governed (0 of 37) · 1,487 lines · CI 52 success, 13 skipped, 0 failed · 2026-11-20T03:22Z

Fences. DetailView.tsx is untouched, so ux-4's lock-badge lines are clear. The field rows are drawn in DetailSection.tsx, named with the other two plugin-detail files and the checklist JSON in amendment 7029319553. The record tab container and rail (#35595/#35596) are not touched. There is no packages/spec, server or data-source change; the only merge rule is the display fold of consecutive same-person, same-day edits, which the claim allows.

Point (1): the migrated negative pins are not vacuous. I read every not. / toBeNull / toHaveLength(0) line the migration touches.

  • The @4xl:grid-cols-3 negatives stand beside positive @xl:grid-cols-2 and @4xl:grid-cols-3 assertions. FRAMELESS_GRID_COLUMNS draws those exact classes.
  • The [data-attachments-empty] negatives are paired with a positive waitFor(... not.toBeNull()) in the empty cases. The attribute exists (RecordAttachmentsPanel.tsx:733).
  • The removed "no Delete button" pins became rowMenuItems(...) assertions that open the ⋮ menu: toEqual(['Download']) when the grant is missing, toContain('Delete attachment') when held. That is stricter than before.
  • The history negatives widened from exact text to /Negotiation/ and /250/ regexes, which is stricter too.
  • The stream CONTROL now asserts the panel's combobox and the shared one-line row, the real face difference since this change.

Point (4): the 720px drawer, by reading. The grid opens two columns at @xl (36rem, 576px) and three at @4xl (56rem, 896px) of its container. A 720px drawer's content box is below 896px, so it draws two columns, as card item 1's 抽屉两列 asks. This is a code reading, not a browser measurement.

New pins. denseActivityRows-35602.test.tsx has six cells:

  • the fold, only same person and same day;
  • the fold row expanding without changing the items;
  • day headings, today first;
  • a comment's header line plus its text;
  • an approval as one line, with 「看审批」 only where the host can open approvals;
  • the one-line comment box until focus.

R1 (text only, no push, no fresh L1): follow-up card for the two item-3 pieces left out. Card item 3 lists the attachment row as 类型、文件名、大小、上传人、上传时间、「⋮」(下载、重命名、删除). This head draws the uploader only on the viewer's own files, because other users' files need a server expand, which is outside this lane. It also has no Rename. Fixes #35602 would close the card with both open. File one follow-up card nested under #35602 for the uploader name and Rename, and name it in the PR body. That follows the maintainer's simple-issue → follow-up-card rule, so it does not block.

R2 (text only): claim amendment for two existing e2e specs. Claim 7026516208 allows "new e2e specs named for the card". The PR edits ui/e2e/narrow-drawer-time-34614.spec.ts and ui/e2e/record-flow-phone-targets.spec.ts. One amendment line closes it.

Nit (no action, or with any later push). Point (2), the reply input now opening behind a per-comment 「回复」 toggle, is a visible behaviour change. The PR body describes it, but the changeset does not. One sentence would carry it into the release notes.

Seat's open questions. Where 「看审批」 leads, and whether authored card faces stay, are with seat 5. Neither changes what this PR draws today: 「看审批」 is offered only where the host passes onViewApprovals.

Routing. Clause-② no, no contract face, not governed: ux-3 marks it ready and lands it after R1 and R2. No L2.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Landing · head 894bd7758a · after L1-a ACCEPT 7029359495 (R1: follow-ups #35723 and #35724 nested under #35602 and named in the body; R2: claim amendment 7029402686) and seat 5's rulings (approval row stays host-supplied; authored card faces keep their cards; UI only, no L2) · 2026-11-20T03:27Z

Probe Reading
Checks at head 894bd7758a 53 success, 15 skipped, 0 failed (Check Changeset re-running on the body edit; its two earlier runs on this head passed)
check-governed-merges.mjs --pr 35708 NOT governed (0 of 37 paths)
Contract record not owed (UI only, no packages/spec, Clause-② no)
Dogfood battery not owed (no !, no narrowing arm); CI Dogfood Regression Gate green
Overlap clean against main; no shared file with the record tabs/rail branch

Status: pr_ready + automerge_enable. Fixes #35602: on MERGED the area posts the close-out; #35723 and #35724 stay open under it.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 20, 2026 03:27
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit a3a74f2 Nov 20, 2026
70 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35602-record-dense-rows-activity-attachments branch November 20, 2026 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

记录页字段密排(标签在左、值在右,每行 32);互动页签按天分组、每条一行;附件页签改成文件行

2 participants